<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/12/18
  Time: 8:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <title>Title</title>
    <link href="<%=basePath%>/bootstrap/css/bootstrap.min.css" rel="stylesheet">
    <title>Title</title>
    <style>
        body{
            background: url("<%=basePath%>/image/4.jpg");
        }
    </style>
</head>
<body>
<%--<h1 style="margin-left: 50px">学生管理系统</h1>--%>
<%--<div style="width: 300px;height: 800px;float: left;margin: 50px">--%>
    <ul class="nav nav-pills nav-stacked" >
        <li role="presentation" class="active">
            <a href="#" data-toggle="collapse" data-target="#listq" >学生管理</a>
            <ul id="listq"  class="collapse in">
                <li >
                    <a href="<%=basePath%>/Student/list.do">
                        学生信息
                    </a>
                </li>
                <li >
                 <%--传入names给查询，查询哪个表的名字--%>
                    <a href="<%=basePath%>/Student/search.do">
                        查询信息
                    </a>
                </li>
                <li>
                    <a href="<%=basePath%>/Student/toAdd.do">
                        添加学生</a>
                </li>
            </ul>
        </li>
        <li role="presentation"><a href="#" data-toggle="collapse"  data-target="#list1">教师管理</a>
            <ul id="list1" class="collapse in">
                <li class="active">
                    <a href="<%=basePath%>/TeacherServlet/list.do">
                        教师信息
                    </a>
                </li>
                <li class="active">
                    <a href="<%=basePath%>/cx.jsp?names=/MavenTest/TeacherServlet/search">
                        查询信息
                    </a>
                </li>
                <li><a href="<%=basePath%>/TeacherServlet/toAdd.do">添加教师</a></li>
            </ul></li>
        <li role="presentation"><a href="#" data-toggle="collapse"  data-target="#list2">课程管理</a>
            <ul id="list2" class="collapse in">
                <li class="active">
                    <a href="<%=basePath%>/CourseServlet/listcourse">
                        课程信息
                    </a>
                </li>
                <li class="active">
                    <a href="<%=basePath%>/cx.jsp?names=/MavenTest/CourseServlet/search">
                        查询信息
                    </a>
                </li>
                <li><a href="<%=basePath%>/insertCourse.jsp">添加课程</a></li>
            </ul></li>
        <li role="presentation"><a href="#" data-toggle="collapse"  data-target="#list3">班级管理</a>
            <ul id="list3" class="collapse in">
                <li class="active">
                    <a href="<%=basePath%>/ClassaServlet/listclassa">
                        班级信息
                    </a>
                </li>
                <li class="active">
                    <a href="<%=basePath%>/cx.jsp?names=/MavenTest/ClassaServlet/search">
                        查询信息
                    </a>
                </li>
                <li><a href="<%=basePath%>/insertClassa.jsp">添加班级</a></li>
            </ul>
        </li>
        <li role="presentation"><a href="#" data-toggle="collapse"  data-target="#list4">专业管理</a>
            <ul id="list4" class="collapse in">
                <li >
                    <a href="<%=basePath%>/MajorServlet/listmajor">
                        专业信息
                    </a>
                </li>
                <li class="active">
                    <a href="<%=basePath%>/cx.jsp?names=/MavenTest/MajorServlet/search">
                        查询信息
                    </a>
                </li>
                <li><a href="<%=basePath%>/insertZhuanye.jsp">添加专业</a></li>
            </ul>
        </li>
    </ul>
<%--</div>--%>

